package com.aggregate.pay.yufu.cpos.bean;

import com.aggregate.pay.yufu.cpos.enums.ReturnCode;
import com.aggregate.pay.yufu.cpos.jackson.converter.ReturnCodeDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * 响应参数－状态信息
 * @author Moyq5
 * @date 2017年9月5日
 */
public class ResultReplyReturnCode {

	/**
	 * 状态描述信息
	 */
	private String message;
	/**
	 * 返回消息
	 */
	private String domain;
	/**
	 * AAAAAA表示执行成功，否则表示执行失败
	 */
	@JsonDeserialize(converter = ReturnCodeDeserialize.class)
	private ReturnCode code;
	/**
	 * S:表示执行成功；E：表示执行失败
	 */
	private String type;
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getDomain() {
		return domain;
	}
	public void setDomain(String domain) {
		this.domain = domain;
	}
	public ReturnCode getCode() {
		return code;
	}
	public void setCode(ReturnCode code) {
		this.code = code;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return "ResultReplyReturnCode [message=" + message + ", domain=" + domain + ", code=" + code + ", type=" + type
				+ "]";
	}
	
}
